home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / examples / dtdnd / icon.h.z / icon.h
Encoding:
C/C++ Source or Header  |  2003-11-18  |  2.5 KB  |  89 lines

  1. /*
  2.  * icon.h
  3.  *
  4.  * Copyright 2000, Silicon Graphics, Inc.
  5.  * ALL RIGHTS RESERVED
  6.  * 
  7.  * UNPUBLISHED -- Rights reserved under the copyright laws of the United
  8.  * States.   Use of a copyright notice is precautionary only and does not
  9.  * imply publication or disclosure.
  10.  *
  11.  * U.S. GOVERNMENT RESTRICTED RIGHTS LEGEND:
  12.  * Use, duplication or disclosure by the Government is subject to restrictions
  13.  * as set forth in FAR 52.227.19(c)(2) or subparagraph (c)(1)(ii) of the Rights
  14.  * in Technical Data and Computer Software clause at DFARS 252.227-7013 and/or
  15.  * in similar or successor clauses in the FAR, or the DOD or NASA FAR
  16.  * Supplement.  Contractor/manufacturer is Silicon Graphics, Inc.,
  17.  * 2011 N. Shoreline Blvd. Mountain View, CA 94039-7311.
  18.  *
  19.  * THE CONTENT OF THIS WORK CONTAINS CONFIDENTIAL AND PROPRIETARY
  20.  * INFORMATION OF SILICON GRAPHICS, INC. ANY DUPLICATION, MODIFICATION,
  21.  * DISTRIBUTION, OR DISCLOSURE IN ANY FORM, IN WHOLE, OR IN PART, IS STRICTLY
  22.  * PROHIBITED WITHOUT THE PRIOR EXPRESS WRITTEN PERMISSION OF SILICON
  23.  * GRAPHICS, INC.
  24.  */
  25. /* $XConsortium: icon.h /main/cde1_maint/1 1995/07/17 16:43:24 drk $ */
  26. /*****************************************************************************
  27.  *****************************************************************************
  28.  **
  29.  **   File:         icon.h
  30.  **
  31.  **   Description:  Header for icon handling portion of CDE Drag & Drop Demo.
  32.  **
  33.  **  (c) Copyright 1993, 1994 Hewlett-Packard Company
  34.  **  (c) Copyright 1993, 1994 International Business Machines Corp.
  35.  **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
  36.  **  (c) Copyright 1993, 1994 Unix System Labs, Inc., a subsidiary of
  37.  **      Novell, Inc.
  38.  **
  39.  ****************************************************************************
  40.  ************************************<+>*************************************/
  41.  
  42. #include <sys/param.h>
  43. #include <stdio.h>
  44.  
  45. /*
  46.  * Icon Information Structure
  47.  */
  48.  
  49. typedef struct _IconInfo {
  50.     XRectangle    icon;
  51.     char        *name;
  52.     void        *data;
  53.     int        dataCount;
  54.     Pixmap        bitmap;
  55.     Pixmap        mask;
  56.     Widget        dragIcon;
  57.     int        type;
  58.     struct _IconInfo *next;
  59.     struct _IconInfo *prev;
  60. } IconInfo;
  61.  
  62. /*
  63.  * Icon Typedefs
  64.  */
  65.  
  66. typedef enum {
  67.     IconBitmap,
  68.     IconMask
  69. } IconBitmapPart;
  70.  
  71. typedef enum {
  72.     IconByFile,
  73.     IconByData,
  74.     IconByType
  75. } IconTyping;
  76.  
  77. /*
  78.  * Public Icon Handling Function Declarations
  79.  */
  80.  
  81. void         IconCreateDouble(Widget, IconInfo*, int, int, IconInfo*,
  82.             short, short);
  83. void        IconDelete(Widget, IconInfo*);
  84. void        IconDraw(Widget, IconInfo*);
  85. void        IconInitialize(Widget, IconInfo*, short, short, void*, int, 
  86.             char*, IconTyping);
  87. IconInfo    *IconNew();
  88.  
  89.